import {
  HTTP
} from "../utils/http-p.js"

class BodyModel extends HTTP {
  getType() {
    return this.request({
      url: `body/getType`
      })
  }
  recordBody(data) {
    return this.request({
      method: 'POST',
      url: `body/recordBody`,
      data
    })
  }
  getBody(typeId) {
    return this.request({
      url: `body/getBody`,
      data: {
        typeId
      }
    })
  }
  
}

export {
  BodyModel
}